package com.github.nuggets.model.result;

import lombok.AllArgsConstructor;
import org.omg.CORBA.DynAnyPackage.Invalid;

/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/17 8:08 下午
 */
@AllArgsConstructor
public enum ResultInfoEnum implements BaseResultInfoInterface{
    SUCCESS(0,"success"),
    FAIL(-1,"fail"),
    BIZ_FAIL(-2,"business fail"),
    PARAMETER_INVALID_FAIL(-3,"Invalid parameter");




    /** 错误码 */
    private Integer resultCode;

    /** 错误描述 */
    private String resultMsg;


    @Override
    public Integer getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
